package cn.sdormitory.report.service.impl;

import cn.sdormitory.report.dao.ClassLeaveStaDao;
import cn.sdormitory.report.dao.LeaveStatisticsDao;
import cn.sdormitory.report.service.ClassLeaveStaService;
import cn.sdormitory.report.service.LeaveStatisticsService;
import cn.sdormitory.report.vo.ClassLeaveStaVO;
import cn.sdormitory.report.vo.LeaveStatisticsVO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @创建人：zhouyang
 * @创建时间：2021/11/8 23:33
 * @version：V1.0
 */
@Slf4j
@Service("classLeaveStaService")
public class ClassLeaveStaServiceImpl extends ServiceImpl<ClassLeaveStaDao, ClassLeaveStaVO> implements ClassLeaveStaService {
    @Resource
    ClassLeaveStaDao classLeaveStaDao;
    @Override
    public List<ClassLeaveStaVO> getClassleaveStaList(String inYearMonth,int pageNum, int pageSize) {
        int currIndex=(pageNum-1)*pageSize;
        return classLeaveStaDao.getClassleaveStaList(inYearMonth,currIndex,pageSize);
    }

    @Override
    public Long getClassleaveStaListCount(String inYearMonth) {
        return classLeaveStaDao.getClassleaveStaListCount(inYearMonth);
    }

    @Override
    public List<ClassLeaveStaVO> getClassleaveStaListExport(String inYearMonth) {
        return classLeaveStaDao.getClassleaveStaListExport(inYearMonth);
    }
}
